package com.tjetc.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDateTime;
/*
* 月结算
* */
@Data
public class MonthlyAmount {
    /*月结算的统计值id*/
    private Integer id;
    /*总额*/
    private BigDecimal amount;
    /*商家收益*/
    private BigDecimal merchantAmount;
    /*平台收益*/
    private BigDecimal adminAmount;
    /*时间*/
    private LocalDateTime time;
    /*对应商家id*/
    private Integer merchantId;
    /*完成订单数量*/
    private Integer finishOrderNumber;
    /*取消订单数量*/
    private Integer canceledOrderNumber;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
}
